home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_12_03 / saks / fewer.h < prev    next >
C/C++ Source or Header  |  1994-01-12  |  311b  |  19 lines

  1. Listing 5 - a derived class whose virtual functions have fewer cv-
  2. qualifiers than the functions they override
  3.  
  4. class B
  5.     {
  6.     ...
  7.     virtual const BB *f();
  8.     virtual const volatile BB &g();
  9.     ...
  10.     };
  11.  
  12. class D : public B
  13.     {
  14.     ...
  15.     DD *f();
  16.     const DD &g();
  17.     ...
  18.     };
  19.